--FOR LEARNING
--TOGGLE TO KEEP THE SCREEN ON

require "import"
import "android.os.PowerManager"
if wlk then
wlk.release()
wlk=nil
service.speak("ستُغْلَقُ الشاشةُ في الوقتِ المحدَّد")
return true
end
wlk = this.getSystemService(this.POWER_SERVICE).newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE,"")
wlk.acquire()
service.speak("ستبقى الشاشةُ مفتوحة")